* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform-style: preserve-3d;
  perspective: 100vw;
}

.container {
  width: 100%;
  transform: rotateX(20deg) rotateY(-10deg) rotateZ(-2deg);
}

.line {
  display: flex;
}

.line:nth-child(even) {
  transform: translateX(calc(0px - (100vw / 20)));
}

.line:nth-child(n + 2) {
  margin-top: calc(0px - (100vw / 42));
}

.line .item {
  flex-shrink: 0;
  width: calc(100vw / 10);
  height: calc(100vw / 10);
  background-color: plum;
  clip-path: polygon(50% 1%, 99% 25%, 99% 75%, 50% 99%, 1% 75%, 1% 25%);
  position: relative;
  z-index: 1;
}

.line .item:hover {
  transition: transform 0.2s ease-in-out;
  transform: translateZ(10px) scale(1.1);
  background-color: deepskyblue;
  z-index: 2;
}